#include<stdio.h>

int main ()
{
	double x;double y;
	int t;int i;
	scanf("%d",&t);
	
for(i=1;i<=t;i++)
	{
		scanf("%lf %lf",&x,&y);
		int year=1;
		double area;
		//printf("%f %f",x,y);
		while(year*100.0<3.1415926*(x*x+y*y))
		{
			year++;
//			printf("a");
		}
		printf("Property %d: This property will begin eroding in year %d.\n",i,year);
	}
	printf("END OF OUTPUT.\n");
	return 0;
}
